<template>
  <el-table
    ref="multipleTable"
    :data="tableData"
    tooltip-effect="dark"
    style="width: 100%"
    @selection-change="handleSelectionChange"
  >
    <el-table-column type="selection" width="55"> </el-table-column>
    <el-table-column label="序号" width="80" type="index">
      <!-- <template slot-scope="scope">{{ scope.row.date }}</template> -->
    </el-table-column>
    <el-table-column prop="carName" label="车型名称" width="120">
    </el-table-column>
    <el-table-column
      prop="carType"
      label="车型分类"
      show-overflow-tooltip
      width="200px"
    ></el-table-column>
    <el-table-column prop="accommodation" label="容纳人数" sortable width="180">
    </el-table-column>
    <el-table-column
      prop="fuel"
      label="燃料种类"
      show-overflow-tooltip
      width="100px"
    ></el-table-column>
    <el-table-column prop="fuelConsumption" label="油耗(L/百公里)" sortable width="180">
    </el-table-column>
    <el-table-column label="编辑" width="120">
      <el-button type="primary" icon="el-icon-edit" circle></el-button>
      <el-button type="danger" icon="el-icon-delete" circle></el-button>
    </el-table-column>
  </el-table>
</template>

<script>
export default {
  name: "ListItem",
  data() {
    return {
      tableData: [
        {
          carName: "比亚迪-汉",
          carType: "中大型",
          accommodation: 5,
          fuel: "纯电",
          fuelConsumption: 0.0,
        },
        {
          carName: "比亚迪-汉",
          carType: "中大型",
          accommodation: 2,
          fuel: "纯电",
          fuelConsumption: 2.0,
        },
        {
          carName: "比亚迪-汉",
          carType: "中大型",
          accommodation: 1,
          fuel: "纯电",
          fuelConsumption: 5.0,
        },
        {
          carName: "比亚迪-汉",
          carType: "中大型",
          accommodation: 4,
          fuel: "纯电",
          fuelConsumption: 1.0,
        },
        {
          carName: "比亚迪-汉",
          carType: "中大型",
          accommodation: 3,
          fuel: "纯电",
          fuelConsumption: 7.0,
        },
      ],
      multipleSelection: [],
    };
  },

  methods: {
    
  },
};
</script>

<style scoped>

</style>